import { Train } from '../../modals'
import { stationMap } from '../stations'

const trainsG = [
  // 北京——上海
  new Train({
    id: 'G1',
    train_number: 'G1',
    start: stationMap['01-021'],
    end: stationMap['20-001'],
    color: 'red',
    times: Array.from({ length: 21 }).map((_, i) => 490 + i * 3),
    stations: [
      stationMap['01-021'],
      stationMap['06-030'],
      stationMap['02-002'],
      stationMap['06-031'],
      stationMap['11-004'],
      stationMap['11-001'],
      stationMap['11-005'],
      stationMap['11-006'],
      stationMap['11-007'],
      stationMap['15-007'],
      stationMap['13-011'],
      stationMap['13-012'],
      stationMap['13-013'],
      stationMap['15-001'],
      stationMap['15-002'],
      stationMap['15-003'],
      stationMap['15-004'],
      stationMap['15-005'],
      stationMap['15-006'],
      stationMap['20-002'],
      stationMap['20-001'],
    ],
  }),
  new Train({
    id: 'G2',
    train_number: 'G2',
    start: stationMap['20-001'],
    end: stationMap['01-021'],
    color: 'red',
    times: Array.from({ length: 21 }).map((_, i) => 480 + i * 3),
    stations: [
      stationMap['20-001'],
      stationMap['20-002'],
      stationMap['15-006'],
      stationMap['15-005'],
      stationMap['15-004'],
      stationMap['15-003'],
      stationMap['15-002'],
      stationMap['15-001'],
      stationMap['13-013'],
      stationMap['13-012'],
      stationMap['13-011'],
      stationMap['15-007'],
      stationMap['11-007'],
      stationMap['11-006'],
      stationMap['11-005'],
      stationMap['11-001'],
      stationMap['11-004'],
      stationMap['06-031'],
      stationMap['02-002'],
      stationMap['06-030'],
      stationMap['01-021'],
    ],
  }),
  new Train({
    id: 'G3',
    train_number: 'G3',
    start: stationMap['01-021'],
    end: stationMap['20-001'],
    color: 'red',
    times: Array.from({ length: 21 }).map((_, i) => 500 + i * 3),
    stations: [
      stationMap['01-021'],
      stationMap['06-030'],
      stationMap['02-002'],
      stationMap['06-031'],
      stationMap['11-004'],
      stationMap['11-001'],
      stationMap['11-005'],
      stationMap['11-006'],
      stationMap['11-007'],
      stationMap['15-007'],
      stationMap['13-011'],
      stationMap['13-012'],
      stationMap['13-013'],
      stationMap['15-001'],
      stationMap['15-002'],
      stationMap['15-003'],
      stationMap['15-004'],
      stationMap['15-005'],
      stationMap['15-006'],
      stationMap['20-002'],
      stationMap['20-001'],
    ],
  }),
  new Train({
    id: 'G4',
    train_number: 'G4',
    start: stationMap['20-001'],
    end: stationMap['01-021'],
    color: 'red',
    times: Array.from({ length: 21 }).map((_, i) => 503 + i * 3),
    stations: [
      stationMap['20-001'],
      stationMap['20-002'],
      stationMap['15-006'],
      stationMap['15-005'],
      stationMap['15-004'],
      stationMap['15-003'],
      stationMap['15-002'],
      stationMap['15-001'],
      stationMap['13-013'],
      stationMap['13-012'],
      stationMap['13-011'],
      stationMap['15-007'],
      stationMap['11-007'],
      stationMap['11-006'],
      stationMap['11-005'],
      stationMap['11-001'],
      stationMap['11-004'],
      stationMap['06-031'],
      stationMap['02-002'],
      stationMap['06-030'],
      stationMap['01-021'],
    ],
  }),
  // 武汉-丰台
  new Train({
    id: 'G5',
    train_number: 'G5',
    start: stationMap['01-023'],
    end: stationMap['16-001'],
    color: 'red',
    times: Array.from({ length: 21 }).map((_, i) => 510 + i * 3),
    stations: [
      stationMap['01-023'],
      stationMap['06-025'],
      stationMap['06-026'],
      stationMap['06-027'],
      stationMap['06-028'],
      stationMap['06-029'],
      stationMap['06-001'],
      stationMap['06-032'],
      stationMap['06-033'],
      stationMap['06-034'],
      stationMap['12-004'],
      stationMap['12-003'],
      stationMap['12-002'],
      stationMap['12-001'],
      stationMap['12-005'],
      stationMap['12-006'],
      stationMap['12-007'],
      stationMap['12-008'],
      stationMap['12-009'],
      stationMap['16-003'],
      stationMap['16-001'],
    ],
  }),
  new Train({
    id: 'G6',
    train_number: 'G6',
    start: stationMap['16-001'],
    end: stationMap['01-023'],
    color: 'red',
    times: Array.from({ length: 21 }).map((_, i) => 513 + i * 3),
    stations: [
      stationMap['16-001'],
      stationMap['16-003'],
      stationMap['12-009'],
      stationMap['12-008'],
      stationMap['12-007'],
      stationMap['12-006'],
      stationMap['12-005'],
      stationMap['12-001'],
      stationMap['12-002'],
      stationMap['12-003'],
      stationMap['12-004'],
      stationMap['06-034'],
      stationMap['06-033'],
      stationMap['06-032'],
      stationMap['06-001'],
      stationMap['06-029'],
      stationMap['06-028'],
      stationMap['06-027'],
      stationMap['06-026'],
      stationMap['06-025'],
      stationMap['01-023'],
    ],
  }),
  // 北京西-石家庄
  new Train({
    id: 'G7',
    train_number: 'G7',
    start: stationMap['01-022'],
    end: stationMap['06-001'],
    color: 'red',
    times: Array.from({ length: 7 }).map((_, i) => 490 + i * 3),
    stations: [
      stationMap['01-022'],
      stationMap['01-023'],
      stationMap['06-025'],
      stationMap['06-026'],
      stationMap['06-027'],
      stationMap['06-028'],
      stationMap['06-029'],
      stationMap['06-001'],
    ],
  }),
  new Train({
    id: 'G8',
    train_number: 'G8',
    start: stationMap['06-001'],
    end: stationMap['01-022'],
    color: 'red',
    times: Array.from({ length: 7 }).map((_, i) => 480 + i * 3),
    stations: [
      stationMap['06-001'],
      stationMap['06-029'],
      stationMap['06-028'],
      stationMap['06-027'],
      stationMap['06-026'],
      stationMap['06-025'],
      stationMap['01-023'],
      stationMap['01-022'],
    ],
  }),
  // 哈尔滨-北京朝阳
  new Train({
    id: 'G9',
    train_number: 'G9',
    start: stationMap['01-001'],
    end: stationMap['03-001'],
    color: 'red',
    times: Array.from({ length: 7 }).map((_, i) => 480 + i * 3),
    stations: [
      stationMap['01-001'],
      stationMap['06-007'],
      stationMap['06-008'],
      stationMap['05-069'],
      stationMap['05-014'],
      stationMap['04-001'],
      stationMap['03-001'],
    ],
  }),
  new Train({
    id: 'G10',
    train_number: 'G10',
    start: stationMap['03-001'],
    end: stationMap['01-001'],
    color: 'red',
    times: Array.from({ length: 7 }).map((_, i) => 480 + i * 3),
    stations: [
      stationMap['03-001'],
      stationMap['04-001'],
      stationMap['05-014'],
      stationMap['05-069'],
      stationMap['06-008'],
      stationMap['06-007'],
      stationMap['01-001'],
    ],
  }),
  // 北京北-包头
  new Train({
    id: 'G11',
    train_number: 'G11',
    start: stationMap['01-024'],
    end: stationMap['07-003'],
    color: 'red',
    times: Array.from({ length: 9 }).map((_, i) => 490 + i * 3),
    stations: [
      stationMap['01-024'],
      stationMap['01-025'],
      stationMap['06-050'],
      stationMap['06-049'],
      stationMap['07-004'],
      stationMap['07-002'],
      stationMap['07-005'],
      stationMap['07-001'],
      stationMap['07-003'],
    ],
  }),
  new Train({
    id: 'G12',
    train_number: 'G12',
    start: stationMap['07-003'],
    end: stationMap['01-024'],
    color: 'red',
    times: Array.from({ length: 9 }).map((_, i) => 480 + i * 3),
    stations: [
      stationMap['07-003'],
      stationMap['07-001'],
      stationMap['07-005'],
      stationMap['07-002'],
      stationMap['07-004'],
      stationMap['06-049'],
      stationMap['06-050'],
      stationMap['01-025'],
      stationMap['01-024'],
    ],
  }),
  // 齐齐哈尔-牡丹江
  new Train({
    id: 'G13',
    train_number: 'G13',
    start: stationMap['03-004'],
    end: stationMap['03-006'],
    color: 'red',
    times: Array.from({ length: 7 }).map((_, i) => 490 + i * 3),
    stations: [
      stationMap['03-004'],
      stationMap['03-003'],
      stationMap['03-015'],
      stationMap['03-001'],
      stationMap['03-017'],
      stationMap['03-018'],
      stationMap['03-006'],
    ],
  }),
  new Train({
    id: 'G14',
    train_number: 'G14',
    start: stationMap['03-006'],
    end: stationMap['03-004'],
    color: 'red',
    times: Array.from({ length: 7 }).map((_, i) => 480 + i * 3),
    stations: [
      stationMap['03-006'],
      stationMap['03-018'],
      stationMap['03-017'],
      stationMap['03-001'],
      stationMap['03-015'],
      stationMap['03-003'],
      stationMap['03-004'],
    ],
  }),
]

export default trainsG;
